package com.example.freshfoodproject.mapper;

import com.example.freshfoodproject.entry.Goods;
import com.example.freshfoodproject.util.PageHelper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface ListMapper {
    public List<Goods> selectType();
    public List<Goods> selectAll();
    public Goods selectName(String goodsName);
    public List<Goods> selectGoodsByQueryAndIndex(@Param("goods")Goods goods, @Param("pageHelper")PageHelper pageHelper);
    public List<Goods> selectGoodsByQueryAndIndexSort(@Param("goods")Goods goods, @Param("pageHelper")PageHelper pageHelper);
    public List<Goods> selectGoodsByQueryAndIndexTotal(@Param("goods")Goods goods, @Param("pageHelper")PageHelper pageHelper);
    public int updateTotal(Goods goods);
    public int updateRecentlyViewed(Goods goods);
}
